package com.stedu.service;

import com.stedu.bean.Admin;
import com.stedu.exception.SteduException;
import java.util.List;
import java.util.Map;

public interface AdminService {
    Admin login(String username, String password ,String user) throws SteduException;

    List<Map<String, Object>> selectTop5DnameAndCount();


    boolean insert(Admin a) throws SteduException;
    //删除
    boolean delete(Integer id) throws SteduException;
    //修改
    boolean update(Admin a) throws SteduException;
    Integer selectuserNumber();
    //根据id查询
    Admin selectById(Integer cid);
    //根据用户名查询
    Admin selectUsername(String username);
    //分页查询
    List<Admin> selectPage(String uname);
}

